﻿package mortal.component.skin.textArea
{
    import com.mui.skins.*;
    import fl.core.*;
    import flash.display.*;
    import flash.text.*;
    import mortal.common.global.*;
    import mortal.component.skin.scrollBar.*;

    public class GTextAreaStyle extends SkinStyle
    {
        private var scrollBarStyle:ScrollBarChatStyle;
        private static var textFormat:TextFormat;

        public function GTextAreaStyle()
        {
            this.scrollBarStyle = new ScrollBarChatStyle();
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            if (!textFormat)
            {
                textFormat = GlobalStyle.getTextFormatDefaultFont(GlobalStyle.textFormatPutong);
            }
            param1.setStyle("upSkin", new Bitmap());
            param1.setStyle("textPadding ", 0);
            param1.setStyle("textFormat", textFormat);
            this.scrollBarStyle.setStyle(param1);
            return;
        }// end function

    }
}
